<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link href="/static/css/index.css" rel="stylesheet"/>
  <script src="/static/js/index.js"></script>
</head>
<body>
  <h1>hello word!</h1>
  {% for item in data %}
    <h2>用户名：{{ item.user }}</h2>
    <h2>密码：{{ item.pwd }}</h2>
  {% endfor %}
  {#    <img src="/static/img/demo.png" />#}
  <h1>用户输入：</h1>
  <form action="/user_data" method="post">
    {% csrf_token %}   <!--加入这行 -->
    用户名：<input type="text" name="username"/><br/>
    密码：<input type="password" name="password"/><br/>
    <input type="submit" value="提交"/>
  </form>
</body>
</html>